package model

import (
	"gorm.io/gorm"
)

type Mcp struct {
	gorm.Model
	Name     string `gorm:"type:varchar(50);not null;uniqueIndex;comment:mcp名称" json:"name"`
	Describe string `gorm:"type:varchar(255);not null;comment:describe" json:"describe"`
	Type     int    `gorm:"type:tinyint;not null;default:1;comment:1 stdio 2sse " json:"type"`
	Status   int    `gorm:"type:tinyint;not null;default:1;comment:1 开启 0关闭 " json:"status"`
	Cmd      string `gorm:"type:varchar(256);comment:命令" json:"cmd"`
	Params   string `gorm:"type:varchar(128);uniqueIndex;comment:参数" json:"params"`
	Env      string `gorm:"type:varchar(128);comment:env" json:"env"`
}

func (Mcp) TableName() string {
	return "t_mcp"
}
